var app = new Vue({
    el: '#app',
    data: {
        form: {
            keywords: '',
            current_page: 1,
            total: 0,
            page_size: 15
        },
        table: {
            list: []
        },
        pageInfo: {
            title: '小区列表'
        },
        dialog: {
            isShow: false,
            title: '',
            disabled: false
        },
        communityDetail: {}
    },
    mounted:function(){
        this.getCommunityList()
    },
    methods: {
        goToRoom:function(id) {
            window.location.href = '/building/detail?id=' + this.community.id;
        }

    }
});
$(document).keyup(function(e){
    var key = e.which;
    if(key==13){
        app.getCommunityList();
        return false;
    }
});
